package admin.zipcode;

import java.util.List;
import java.util.ArrayList;

import comm.IbatisLoader;

import com.ibatis.sqlmap.client.SqlMapClient;

public class zipcodeDao {

	private IbatisLoader 	iBatis;
	private SqlMapClient 	sqlMapper;
	
	public zipcodeDao(){
		this.sqlMapper = iBatis.setConfig();
	}
	
	public List getZipcode (String zip_code4){
		List returnValue = new ArrayList();
		try{
			returnValue = (List)sqlMapper.queryForList("zipcode.SELECTZIPCODE",zip_code4);
		}catch (Exception e) {
			// TODO: handle exception
		}
		return returnValue;
	}
}
